package com.effectiv.crm.controller;

import lombok.extern.slf4j.Slf4j;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@Slf4j
@RequestMapping("/guest")
public class GuestController {
	
	@RequestMapping("/signin")
	public String gotoLoginPage(){
		
		log.info("Redirecting guest to signin page");
		
		return "signin";
	}
	
	
	@RequestMapping("/loginfailed")
	public String loginFailed(Model model){
		model.addAttribute("loginError", true);
		return "signin";
	}
}
